import React from "react";
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
import { atomDark } from "react-syntax-highlighter/dist/esm/styles/prism";
export class Code extends React.Component {
  render() {
    return (
      <div style={{ fontSize: 14 }}>
        <SyntaxHighlighter
          language={this.props.lang}
          style={atomDark}
          wrapLines={true}
        >
          {this.props.children}
        </SyntaxHighlighter>
      </div>
    );
  }
}
